// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 随机返回一句名人名言 GET /question/submit/famous */
export async function randomFamousQuotes(options?: { [key: string]: any }) {
  return request<API.BaseResponseString>('/question/submit/famous', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 分页查询提交记录 POST /question/submit/page */
export async function listQuestionSubmitByPage(
  body: API.SubmitRecordRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageQuestionSubmitVO>('/question/submit/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
